package com.mi9688.lambda;

import java.util.Random;

public class Test02 {
	public static void main(String [] args){
		
		int id=101;

		int result1=new FuncInterface2(){

			@Override
			public int del(int id) {
				System.out.println(id);
				return 1;
			}
			
		}.del(id);
			
		//Lambda
		int result2=((FuncInterface2)p->{System.out.println(p);return 1;}).del(id);
		
		
		System.out.println(result1);
		System.out.println(result2);
		
	}

}
